home *** CD-ROM | disk | FTP | other *** search
/ Aminet 41 / Aminet 41 (2001)(Schatztruhe)[!][Feb 2001].iso / Aminet / comm / tcp / samba_2.0.7.lha / source / amiga_rcs / stat.h < prev    next >
C/C++ Source or Header  |  2000-12-25  |  3KB  |  142 lines

  1. head    1.3;
  2. access;
  3. symbols
  4.     V1_19:1.3
  5.     V1_18:1.2
  6.     V1_15:1.2
  7.     V1_12:1.1
  8.     V1_11:1.1
  9.     V1_10:1.1
  10.     V1_9:1.1
  11.     V1_8:1.1
  12.     V1_7:1.1
  13.     V1_6:1.1
  14.     V1_5:1.1
  15.     V1_4:1.1
  16.     V1_3:1.1
  17.     V1_2:1.1
  18.     V1_1:1.1;
  19. locks
  20.     olsen:1.3; strict;
  21. comment    @ * @;
  22.  
  23.  
  24. 1.3
  25. date    2000.12.25.11.49.44;    author olsen;    state Exp;
  26. branches;
  27. next    1.2;
  28.  
  29. 1.2
  30. date    2000.05.22.19.09.30;    author olsen;    state Exp;
  31. branches;
  32. next    1.1;
  33.  
  34. 1.1
  35. date    99.02.09.08.25.05;    author olsen;    state Exp;
  36. branches;
  37. next    ;
  38.  
  39.  
  40. desc
  41. @.
  42. @
  43.  
  44.  
  45. 1.3
  46. log
  47. @.
  48. @
  49. text
  50. @#ifndef _WRAPPER_STAT_H
  51. #define _WRAPPER_STAT_H
  52.  
  53. /*
  54.  * $Id: stat.h 1.2 2000/05/22 19:09:30 olsen Exp olsen $
  55.  *
  56.  * :ts=4
  57.  *
  58.  * AmigaOS wrapper routines for Samba 2.0.0, using the AmiTCP V3 API
  59.  * and the SAS/C V6.58 compiler.
  60.  *
  61.  * Copyright (C) 1999-2000 by Olaf `Olsen' Barthel <olsen@@sourcery.han.de>
  62.  *
  63.  * This program is free software; you can redistribute it and/or modify
  64.  * it under the terms of the GNU General Public License as published by
  65.  * the Free Software Foundation; either version 2 of the License, or
  66.  * (at your option) any later version.
  67.  * 
  68.  * This program is distributed in the hope that it will be useful,
  69.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  70.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  71.  * GNU General Public License for more details.
  72.  * 
  73.  * You should have received a copy of the GNU General Public License
  74.  * along with this program; if not, write to the Free Software
  75.  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  76.  */
  77.  
  78. /****************************************************************************/
  79.  
  80. #include <sys/types.h>
  81. #include <sys/commifmt.h>
  82. #include <time.h>
  83.  
  84. struct stat
  85. {
  86.     dev_t    st_dev;        /* inode's device */
  87.     ino_t    st_ino;        /* inode's number */
  88.     mode_t    st_mode;    /* inode protection mode */
  89.     u_short    st_nlink;    /* number of hard links */
  90.     uid_t    st_uid;        /* user ID of the file's owner */
  91.     gid_t    st_gid;        /* group ID of the file's group */
  92.     u_long    st_rdev;    /* device type */
  93.     off_t    st_size;    /* file size, in bytes */
  94.     time_t    st_atime;    /* time of last access */
  95.     time_t    st_mtime;    /* time of last data modification */
  96.     time_t    st_ctime;    /* time of last file status change */
  97.     long    st_blksize;    /* optimal blocksize for I/O */
  98.     long    st_blocks;    /* blocks allocated for file */
  99. };
  100.  
  101. /****************************************************************************/
  102.  
  103. struct statfs
  104. {
  105.     long f_fsize;        /* fundamental file system block size */
  106.     long f_bsize;        /* optimal transfer block size */
  107.     long f_blocks;        /* total data blocks in file system */
  108.     long f_bfree;        /* free blocks in fs */
  109.     long f_bavail;        /* free blocks avail to non-superuser */
  110.     long f_spare[9];    /* spare for later */
  111. };
  112.  
  113. /****************************************************************************/
  114.  
  115. #endif /* _WRAPPER_STAT_H */
  116. @
  117.  
  118.  
  119. 1.2
  120. log
  121. @.
  122. @
  123. text
  124. @d5 1
  125. a5 1
  126.  * $Id: stat.h 1.1 1999/02/09 08:25:05 olsen Exp olsen $
  127. d9 1
  128. a9 1
  129.  * AmigaOS wrapper routines for Samba 2.0.0, using the AmiTCP V4 API
  130. @
  131.  
  132.  
  133. 1.1
  134. log
  135. @.
  136. @
  137. text
  138. @d12 1
  139. a12 1
  140.  * Copyright (C) 1999 by Olaf `Olsen' Barthel <olsen@@sourcery.han.de>
  141. @
  142.